344-roman Digititis
Time limit:3.000 seconds
Http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem &problem=280
The Many persons are familiar with the Roman is numerals for relatively small. The
Afternoon on the FCC (freecodecamp) Chinese online to do an exercise: the given number into Roman numerals . Tortured for one hours, finally can give the basic ability to achieve. The process is as follows:About Roman NumeralsA detailed description
The source of the topichttps://leetcode.com/problems/roman-to-integer/https://leetcode.com/problems/integer-to-roman/
Achieve the reciprocal conversion of Roman numerals and integers. The number size is between [1, 3999].
Roman Numerals
Roman
Roman numeral Converter1. Requirements
Converts a given number into Roman numerals
All returned Roman numerals should be in uppercase form
2. Ideas
Array of corresponding Roman numerals for single-digit, 10-bit, hundred,
The Roman numerals contain the following seven characters:,,,, I V X L C , D and M .Character value I 1V 5X 10L 50C 100D 500M 1000For example, the Roman
Topic Requirements:
The ancient Roman Empire created a glorious human civilization, but their digital notation is indeed a bit cumbersome, especially when it comes to large numbers, which now seem unbearable, so it is rarely used in modern times.
Integer to RomanGiven an integer, convert it to a Roman numeral.The number is guaranteed to being within the range from 1 to 3999 .ClarificationWhat is Roman numeral?
Https://en.wikipedia.org/wiki/Roman_numerals
https://zh.wikipedia.org/
1. TitleInteger to Roman (conversion of Arabic numerals to Roman numerals)2. Address of the topicHttps://leetcode.com/problems/integer-to-roman3. Topic contentEnglish: Given An integer, convert it to a Roman numeral. Input is guaranteed to being
Problem
Analytical
Appendix Roman Numeral Spelling Rules
ProblemInteger to roman:https://leetcode.com/problems/integer-to-roman/Degree:mediumGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the
[Question]
Given a roman numeral, convert it to an integer. Or, given an integer, convert it to a roman numeral.
Input is guaranteed to be within the range from 1 to 3999.
[Roman numerals]
1 ~ 9: {"I", "II", "III", "IV", "V", "Vi", "VII",
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.